package com.ruoyi.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * alarm对象 sys_alarms
 *
 * @author ruoyi
 * @date 2022-05-11
 */
public class SysAlarms extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    private Long alarmId;

    /**
     * 车辆id
     */
    @Excel(name = "车辆id")
    private Long carId;

    /**
     * 车况分析结果id
     */
    @Excel(name = "车况分析结果id")
    private Long resId;

    /**
     * 报警信息
     */
    @Excel(name = "报警信息")
    private String alarmInfo;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date createAt;

    /**
     * 故障处理状态
     */
    @Excel(name = "故障处理状态")
    private Long state;

    public void setAlarmId(Long alarmId) {
        this.alarmId = alarmId;
    }

    public Long getAlarmId() {
        return alarmId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    public Long getCarId() {
        return carId;
    }

    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    public void setAlarmInfo(String alarmInfo) {
        this.alarmInfo = alarmInfo;
    }

    public String getAlarmInfo() {
        return alarmInfo;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("alarmId", getAlarmId())
                .append("carId", getCarId())
                .append("alarmInfo", getAlarmInfo())
                .append("createAt", getCreateAt())
                .toString();
    }
}
